/*
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

package com.facebook.common.abilitylistener;

/** Interface for abilities that support dynamic addition of AbilityListeners */
public interface ListenableAbility {
    /**
     * Adds AbilityListener to the ability
     *
     * @param listener
     */
    void addAbilityListener(AbilityListener listener);

    /**
     * Removes AbilityListener from the ability
     *
     * @param listener
     */
    void removeAbilityListener(AbilityListener listener);
}
